package com.aabte.springcloudstudy.computeservice;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "provider-service", fallback = ComputeServiceFallback.class)
public interface ComputeService {

    @RequestMapping(path = "/add", method = RequestMethod.GET)
    Integer add(@RequestParam(name = "a") Integer a, @RequestParam(name = "b") Integer b);
}
